{% extends "base.html" %}
{% block title %}个人中心{% endblock %}
{% block label %}个人中心{% endblock %}
{% block content %}

    <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data">
        {% csrf_token %}
        <div class="form-group">
            <label class="col-md-4">账号</label>
            <div class="col-md-8">
                <input type="text" class="form-control" name="username" placeholder="请输入账号" value="{{ user.nick_name }}" readonly>
            </div>
        </div>
{#        <div class="form-group">#}
{#            <label class="col-md-4">密码</label>#}
{#            <div class="col-md-8">#}
{#                <input type="text" class="form-control" name="password" placeholder="请输入密码" value="">#}
{#            </div>#}
{#        </div>#}
        <div class="form-group">
            <label class="col-md-4">昵称</label>
            <div class="col-md-8">
                <input type="text" class="form-control" name="nick_name" placeholder="请输入昵称" value="{{ user.nick_name }}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-4">性别</label>
            <div class="col-md-8">
                <input type="text" class="form-control" name="gender" placeholder="请输入性别" value="{{ user.gender }}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-4">电话</label>
            <div class="col-md-8">
                <input type="text" class="form-control" name="phone" placeholder="请输入电话" value="{{ user.phone }}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-4">邮箱</label>
            <div class="col-md-8">
                <input type="text" class="form-control" name="email" placeholder="请输入邮箱" value="{{ user.email }}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-4">头像</label>
            <div class="col-md-8">
                <input type="file" name="picture">
            </div>
        </div>
        <div class="form-group">
            <label class="col-md-4">地址</label>
            <div class="col-md-8">
                <input type="text" class="form-control" name="address" placeholder="请输入地址" value="{{ user.address }}">
            </div>
        </div>
{#        <div class="form-group">#}
{#            <label class="col-md-4">用户类型</label>#}
{#            <div class="col-md-8">#}
{#                <input type="text" class="form-control" name="password" placeholder="请输入用户类型" value="">#}
{#            </div>#}
{#        </div>#}
        <div class="form-group col-md-8">
            <input type="submit" class="btn btn-primary btn-block" value="提交">
        </div>
{#        <label for="firstname" class="col-md-2 control-label">账号</label>#}
{#		<div class="col-md-10">#}
{#			<input type="text" class="form-control" name="username" id="username" placeholder="请输入账号" value="">#}
{#		</div>#}
{#        <div>#}
{#            <input type="submit" value="提交">#}
{#        </div>#}

    </form>
{% endblock %}
